package com.ruoyi.ae.api;

import com.ruoyi.ae.api.domain.AeHandoverCommitInfo;
import com.ruoyi.ae.api.domain.dto.OrderShipmentForTopDto;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(contextId = "remoteAeLogisticsService", value = ServiceNameConstants.AE_SERVICE)
public interface RemoteAeLogisticsService {

    /**
     * 子单声明发货
     */
    @PostMapping("/erp/erpLogistics/sellerShipmentForTop")
    public R<Object> sellerShipmentForTop(@RequestBody OrderShipmentForTopDto orderShipmentForTopDto);

    /**
     * 交接单提交
     *
     * @param handoverCommitInfo
     * @return
     */
    @PostMapping("/erp/erpLogistics/handoverCommit")
    public R<Object> handoverCommit(@RequestBody AeHandoverCommitInfo handoverCommitInfo);

    /**
     * 查询组包信息
     *
     * @return
     */
    @PostMapping("/erp/erpLogistics/handoverContentQuery")
    public R<Object> handoverContentQuery(@RequestBody Map<String, Object> map);

    /**
     * 获取组包 打包面单Pdf
     *
     * @return
     */
    @PostMapping("/erp/erpLogistics/getHandoverPdf")
    public R<Object> getHandoverPdf(@RequestBody Map<String, Object> map);
}
